package JavaCodePublicClass.龟兔赛跑;

public class MainClass {
    public static void main(String[] args) {
        //实例化对象乌龟和兔子
        Tortoise t = new Tortoise();
        Rabbit r = new Rabbit();
        LetOneStop l = new LetOneStop(t);
        r.calltoback=l;
        LetOneStop l1=new LetOneStop(r);
        t.calltoback=l1;
        t.start();
        r.start();
    }
}
